/**
 * Copyright © 2009 Qasky. All rights reserved.
 *
 * 用户状态管理
 *
 * @author Wang Hongya
 * @version 0.0.0 2019/10/14
 *
 * History:
 * (author, date, desc)
 * (Wang Hongya, 20191014, 添加注释)
 */

import {addResAuditDef,getResAuditDef,delResAuditDef,updResAuditDef} from 'api/sysResAuditApi';

/* 用户的状态管理 */
const sysResAudit = {
     actions: {
       addResAuditAct (context,parm) {
         return addResAuditDef(parm).then(response => {
             return response.data;
         });
       },
       getResAuditAct (context,parm) {
         return getResAuditDef(parm).then(response => {
           return response.data;
         });
       },
       delResAuditDef (context, para) {
         return delResAuditDef(para).then(response => {
           let data = response.data;
           return data;
         });
       },
       updResAuditDef (context, para) {
         return updResAuditDef(para).then(response => {
           let data = response.data;
           return data;
         });
       }
    }
};

export default sysResAudit;
